<head>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%-- <link rel="stylesheet" href="<%=request.getContextPath()%>/resources/css/style.css" /> --%>
<%-- <link rel="stylesheet" href="configdata/resources/css/style.css" /> --%>
<%-- <link rel="stylesheet" href="<%=request.getContextPath()%>/css/login-form.css" />
<script src="<%=request.getContextPath()%>/js/login-form.js"></script>
<script src="<%=request.getContextPath()%>/js/jqueryValidator.js"></script>
<script src="<%=request.getContextPath()%>/js/jquery-ui-1.8.21.custom.min.js"></script>
<script src="<%=request.getContextPath()%>/js/jquery-1.7.2.min.js"></script> --%>

<link rel="stylesheet" href="<c:url value="/css/login-form.css" />"/>
<link rel="stylesheet" href="<c:url value="/css/sunny/jquery-ui-1.10.0.custom.css" />"/>
<script src="<c:url value="/js/login-form.js" />" ></script>
<script src="<c:url value="/js/jqueryValidator.js" />" ></script>
<script src="<c:url value="/js/jquery-ui-1.8.21.custom.min.js" />" ></script>
<script src="<c:url value="/js/jquery-1.7.2.min.js" />" ></script>
<script src="<c:url value="/js/jquery-ui-1.10.0.custom.js" />" ></script>


</head>

<body>

	<c:if test="${not empty error}">
	
	<div class="ui-widget">
	<div style="padding: 0 .7em;" class="ui-state-error ui-corner-all">
		<p><span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span>
		<strong>Alert:</strong> Your login attempt was not successful, try again.<br /> Caused :
			${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}</p>
	</div>
	</div>
		
	</c:if>
	
	
	
	<div class="login-form">

	<h1>Login Form</h1>

	<form action="<c:url value='j_spring_security_check' />" method="post">

		<input type="text" name='j_username' placeholder="username">
		
		<input type="password" name='j_password' placeholder="password">
		
		<span>
			<input type="checkbox" name="checkbox">
			<label for="checkbox">remember</label>
		</span>
		
		<input type="submit" value="log in">

	</form>

</div>

</body>